//
//  FSMotailCollectionViewCell.m
//  Freemode
//
//  Created by xhl on 16/3/14.
//  Copyright © 2016年 贵州喜乐荟科技有限公司. All rights reserved.
//

#import "FSMotailCollectionViewCell.h"
//#import "UIImageView+WebCache.h"

@interface FSMotailCollectionViewCell ()
{
    UIImageView *_imgView;
}

@end

@implementation FSMotailCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH_BOUNDS, SCREEN_HEIGHT_BOUNDS)];
        _imgView.contentMode = UIViewContentModeScaleAspectFit;
        _imgView.clipsToBounds = YES;
        [self.contentView addSubview:_imgView];
    }
    return self;
}

- (void)cellDataWithImg:(id)img
{
//    if ([img isKindOfClass:[UIImage class]]){
        _imgView.image =  img;
//    }else if([img isKindOfClass:[NSString class]]){
//        [_imgView sd_setImageWithURL:[NSURL URLWithString:img] placeholderImage:ImageNamed(EMPTY_BANNER_WHITE) completed:nil];
//    }
    
    
}
@end
